package com.anycl.design.behavioral.mediator;

import lombok.extern.slf4j.Slf4j;

/**
 * 具体同事类
 */
@Slf4j
public class Colleague2 extends Colleague {

    public Colleague2(Mediator mediator) {
        super(mediator);
    }
    // 自发行为
    public void doSelfMethod2() {
        log.info("doSelfMethod2");
    }

    public void depMethod2() {
        this.mediator.doSomething();
    }
}
